package trism.game.model.common.dyn {
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

	/**
	 * @author Samoiloff  http://samoiloff.com/
	 */
	public class DynamicItem extends EventDispatcher {
		
		public static const SCREEN_CHANGED:String ="screenChanged";
		
		private var _screen:int;
		
		public function DynamicItem(target : IEventDispatcher = null) {
			super(target);
		}

		public function get screen() : int {
			return _screen;
		}

		public function set screen(screen : int) : void {
			if (_screen != screen) {
				_screen = screen;
				dispatchEvent(new Event(SCREEN_CHANGED));
			}
		}
	}
}
